package com.poem.service;

import com.poem.dto.AuthorsDTO;
import com.poem.dto.AuthorsPageQueryDTO;
import com.poem.entity.Authors;
import com.poem.result.PageResult;

import java.util.List;

/**
 * @ClassName: AuthorsService
 * @Author: YLY
 * @Description:
 * @Date: 2025/10/14
 * @Version: 1.0
 */

public interface AuthorsService {


    // 查询所有作者
    List<Authors> queryAllAuthors();

    void updateAuthor(AuthorsDTO authorsDTO);

    void addAuthor(AuthorsDTO authorsDTO);

    PageResult<Authors> pageQuery(AuthorsPageQueryDTO authorsPageQueryDTO);

    void deleteBatch(List<Long> ids);

    Authors getById(Long id);
}
